package com.youlai.boot.factory.model.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 报工单实体对象
 *
 * @author youlaitech
 * @since 2025-10-13 13:30
 */
@Getter
@Setter
@TableName("work_report")
public class WorkReport extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 款ID
     */
    private Long styleId;
    /**
     * 报工人ID
     */
    private Long workerId;
    /**
     * 裁床单ID
     */
    private Long cuttingBedId;
    /**
     * 选择的工序IDS（JSON数组格式存储）
     */
    private String processIds;
    /**
     * 报工工资
     */
    private BigDecimal reportSalary;
    /**
     * 报工总数量
     */
    private Integer totalQuantity;
    /**
     * 报工时间
     */
    private LocalDateTime reportDate;
    /**
     * 状态：1-正常 0-删除
     */
    private Integer status;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 报工类型
     */
    private String reportType;

    @Schema(description = "审核状态 1待审核 2审核通过 3审核不通过")
    private String auditStatus;

    @Schema(description = "驳回原因")
    private String rejectReason;

    @Schema(description = "结算状态 0-未结算 1-已结算")
    private Integer settlementStatus;
}
